package com.woniuxy.main.dynamic_lzq.service.impl;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.main.dynamic_lzq.mapper.VenueMapper_Lzq;
import com.woniuxy.main.dynamic_lzq.pojo.User;
import com.woniuxy.main.dynamic_lzq.pojo.Venue_lzq;
import com.woniuxy.main.dynamic_lzq.service.VenueService_Lzq;

import lombok.Data;

@Service
@Data
public class VenueServiceImpl_Lzq implements VenueService_Lzq{
	
	@Autowired
	private VenueMapper_Lzq venueMapper;
	@Override
	public List<Venue_lzq> findVenuesByUsers(List<User> users) {
		List<Venue_lzq> venues = new ArrayList<Venue_lzq>();
		for(int i=0;i<users.size();i++){
			User user = users.get(i);
			Venue_lzq venue = venueMapper.findVenueByUid(user.getUser_id());
			venues.add(venue);
		}
		
		return venues;
	}

}
